<?php
namespace app\zbj\controller;
use think\Controller;
use think\Request;
use think\Session;

class Base extends Controller
{
    //
    public function __construct(Request $request = null)
    {

        parent::__construct($request);
//        var_dump(Session::get('user'));die;
        if(Session::get('zbjUser')==null){
            echo "<script>alert('请先登录');window.location.href='".url('zbj/Login/index')."'</script>";die;
//            $this->redirect('vip_agent/Login/index');
        }

    }
}
